package com.qd.panda.gas.station.req;

import com.qd.common.sys.domain.entity.log.SendLogDTO;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 计算订单、创建订单
 *
 * @author sjk
 * @create 2022-10-08 16:18
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
@ToString
public class PayReqDTO {
    /**
     * 站点id
     */
    private String stationId;
    /**
     * 枪号
     */
    private String nozzleNumber;
    /**
     * 油号
     */
    private Integer octaneNumber;
    /**
     * 金额
     */
    private BigDecimal totalAmount;
    /**
     * 优惠后的金额，用户支付金额
     */
    private BigDecimal calculatePrice;
    /**
     * 用户ID
     */
    private String userId;
    /**
     * 用户手机号
     */
    private String mobile;
    /**
     * 第三方订单号(我们系统的订单ID)
     */
    private String thirdPartyOrderId;
    /**
     * 用户优惠券
     */
    private String userCouponId;
    /**
     * 记录日志
     */
    private SendLogDTO sendLogDTO;

    public void freeData() {
        this.stationId = null;
        this.nozzleNumber = null;
        this.octaneNumber = null;
        this.totalAmount = null;
        this.calculatePrice = null;
        this.userId = null;
        this.mobile = null;
        this.thirdPartyOrderId = null;
        this.userCouponId = null;
        //不清空sendLog
    }
}